package com.company;

public class yakebi {
    private double x1=0,x2=0,x3=0;
    public void func(){
        System.out.printf("该题目的雅克比公式如下:\n");
        System.out.printf("x1=0.1*(72+x2+2*x3)\nx2=0.1*(83+x1+2*x3)\nx3=0.2*(42+x1+x2)\n");
 int i=9;
 double a=0,b=0,c=0;
 while (i>0){
     a=0.1*(72+x2+2*x3);
     b=0.1*(83+x1+2*x3);
     c=0.2*(42+x1+x2);
     x1=a;x2=b;x3=c;
     System.out.printf("第"+(10-i)+"次雅克比迭代的x1:"+x1+" x2:"+x2+" x3:"+x3+"\n");
     i--;
 }


    }
}
